//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.aaa.stat.controller;



import com.aaa.stat.service.BBusinessInfoService;
import com.aaa.stat.vo.BBusinessInfoVo;
import com.aaa.stat.vo.UserAndBinfoVo;
import com.aaa.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api("stat/businessInfo")
@RestController
@RequestMapping({"stat/businessInfo"})
public class BBusinessInfoController {
    @Autowired
    private BBusinessInfoService businessInfoService;

    public BBusinessInfoController() {
    }

    @ApiOperation(
            value = "",
            notes = "",
            httpMethod = "GET"
    )
    @GetMapping({"/money"})
    private Result<List<BBusinessInfoVo>> money() {
        Result<List<BBusinessInfoVo>> all = this.businessInfoService.findAllNameAndMoney();
        return all;
    }

    @ApiOperation(
            value = "",
            notes = "",
            httpMethod = "GET"
    )
    @GetMapping({"/store"})
    private Result<List<UserAndBinfoVo>> store() {
        Result<List<UserAndBinfoVo>> allUserAndBusinessInfo = this.businessInfoService.findAllUserAndBusinessInfo();
        return allUserAndBusinessInfo;
    }
}
